package com.ftg.learn.pattern.proxy;

/**
 * @author kangjx
 * @createTime 2022/8/10
 */
public class SingerImpl implements Isinger{

    private String name;

    @Override
    public void song() {
        System.out.println(this.getName() + "唱歌");
    }

    @Override
    public void dance() {
        System.out.println(this.getName() + "跳舞");
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

}
